package com.bkitmobile.kesu.android.connectServer;

import android.content.Context;


public abstract class LoadPlaceInfo implements ServiceCallback<String>{
	private double lat,lng;
	private Context context;
	public LoadPlaceInfo(double lat,double lng,Context context)
	{
		this.lat = lat;
		this.lng = lng;
		this.context = context;
	}
	public void load(String filter)
	{
		String []identities = {"ID","filter","lat","lng"};
		String []atributies = {Request.GET_FILTER_PLACES,filter,String.valueOf(lat),String.valueOf(lng)};
		Request.sendAndRecieveData(identities, atributies, true,context, new ServiceCallback<String>() {
			@Override
			public void onSuccess(String result) {
				// TODO Auto-generated method stub
				LoadPlaceInfo.this.onSuccess(result);
			}
			
			@Override
			public void onFailure(Exception exception) {
				// TODO Auto-generated method stub
				LoadPlaceInfo.this.onFailure(exception);
			}
		});
	}
}
